cmake_minimum_required(VERSION 3.15)
project(server)

aux_source_directory(${PROJECT_SOURCE_DIR} SRC)

#头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)

#动态库输出目录
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
#静态库输目录
#set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

#
add_subdirectory(src)

#
link_directories(${PROJECT_SOURCE_DIR}/lib)
link_libraries(thread)


add_executable(server ${SRC})

target_link_libraries(server PRIVATE pthread)
